@import "./reset.css";

html,
body,
#app {
  height: 100%;
  margin: 0;
  font-size: calc(100vw / 192);
  // 设置全局卡片样式
  .card {
    border-radius: 2px;
    box-sizing: border-box;
    background-color: #ffffff;
    box-shadow:
      0px 2px 1px -1px rgba(0, 0, 0, 0.2),
      0px 1px 1px 0px rgba(0, 0, 0, 0.14),
      0px 1px 3px 0px rgba(0, 0, 0, 0.12);
  }
  // flex 横向布局
  .flex_row_between {
    display: flex;
    justify-content: space-between;
  }
  .flex_row_center {
    display: flex;
    justify-content: center;
  }
  .flex_row_between_center {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  // flex 纵向布局
  .flex_column_between {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .flex_column_center {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .flex_column_between_center {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }
  // flex 上下左右居中
  .flex_center {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  // 更改表单验证字体颜色
  .el-form-item__error {
    font-weight: 700;
  }
  --el-color-danger: #f44336;
  // 更改element主题颜色
  --el-color-primary: #009be5;
  // 更改菜单样式
  .el-menu {
    border-right: none;
  }
  .el-dropdown__popper {
    .el-popper__arrow {
      display: none;
    }
  }
  // 更改大型输入框图片大小和数字输入框光标上移问题
  .el-input--large {
    .el-input__icon {
      width: 18px;
      svg {
        width: 18px;
        height: 18px;
      }
    }
    .el-input__inner {
      line-height: 1;
    }
  }
  // 更改弹框样式
  .el-dialog__body {
    padding: 20px;
  }
  // 更改表格线条颜色
  --el-border-color-lighter: rgba(224, 224, 224, 1);
  .el-tabs {
    width: 98%;
    transform: translateY(-10px);
  }
  // 修改默认滚动条样式
  ::-webkit-scrollbar {
    width: 5px;
    background-color: transparent;
  }
  ::-webkit-scrollbar-thumb {
    border-radius: 13px;
    background-color: rgba(204, 206, 219, 0.5);
  }
  // 更改el-scrollbar滚动条显示
  .el-scrollbar__thumb {
    display: none;
  }
}
